{% extends 'bbs/login_base.html' %}
{% block title %}登陆--Klein{% endblock %}
{% load staticfiles %}
{% block body %}

    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <div class="col-md-6 col-md-offset-3">
                    <img src="{% static 'img/bbs/klein_logo_02.png' %}" class="img-responsive">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <form action="{% url 'login' %}" method="post" id="form_login" class="form-horizontal">
                    {% csrf_token %}
                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                            {{ form.username }}
                        </div>
                        <div><div class="Validform_checktip"></div></div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                            {{ form.password }}
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                            <input type="submit" class="btn btn-default login-style" value="登陆">
                            <a href="{% url 'regist' %}" class="btn btn-default login-style pull-right">注册</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
                {% if form.errors %}
                    <div class="row">
                        <div class="col-md-4 col-md-offset-4">
                            <div class="alert alert-warning alert-dismissible" role="alert">
                                <strong>用户名或密码不正确</strong>
                            </div>
                        </div>
                    </div>
                {% endif %}
    </div>
{% endblock %}
{% block foot_js %}
    <script src="{% static 'js/bbs/login.js' %}"></script>
{% endblock %}